/*
 *  This program is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU General Public License
 *  as published by the Free Software Foundation; either version 2
 *  of the License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __X_GUI__
#define __X_GUI__

void x_initGui(void);
int x_parseCmd(char *c, char space);
const char *x_getTicString(int n);
void x_updateInfo(void);
void x_exitGui(void);

enum {
    XKEY_FIRE,
    XKEY_USE,
    XKEY_PAUSE,
    XKEY_TURN_STEP_LEFT,
    XKEY_TURN_STEP_RIGHT,
    XKEY_PREV_TIC,
    XKEY_NEXT_TIC,
    XKEY_COPY_TIC,
    XKEY_DELETE_TIC,
    XKEY_NEW_TIC,
    XKEY_TOGGLE_BLOOD,
    XKEY_SET_SAVEPOINT,
    XKEY_UNSET_SAVEPOINT,
    XKEY_LOAD,
    XKEY_SAVE,
    XKEY_EXIT,
    XKEY_BRUTE,
    XKEY_CHANGE_PLAYER,
    XKEY_TRANSPOSE_LEFT,
    XKEY_TRANSPOSE_RIGHT,
    XKEY_CHANGE_WEAPON,
    XKEY_CHANGE_SAVE_GAME,
    XKEY_CHANGE_LOAD_GAME,
    XKEY_SP_STYLE,
    XKEY_RUN_BACKWARD,
    XKEY_RUN_FORWARD,
    XKEY_STRAFE_LEFT,
    XKEY_STRAFE_RIGHT,
    XKEY_TURN_LEFT,
    XKEY_TURN_RIGHT,
    XKEY_TURN_STEP,
    XKEY_COPY_TIC_X,
    XKEY_DELETE_TIC_X,
    XKEY_BACKWARD_DEMO,
    XKEY_FORWARD_DEMO,
    MAXCMDS
};

#endif
